﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UpdateManager {
    /// <summary>
    /// 本地程序配置实体
    /// </summary>
    public class LocalAssemblyInfo {
        /// <summary>
        /// 网上配置地址
        /// </summary>
        private string xmPath = String.Empty;
        /// <summary>
        /// 程序集合
        /// </summary>
        private Dictionary<string, LocalAssemblyItemInfo> assemblyItems = new Dictionary<string, LocalAssemblyItemInfo>();
        /// <summary>
        /// 是否自动启动执行的应用
        /// </summary>
        private bool autoStart = false;
        /// <summary>
        /// 自动启动的应用名称
        /// </summary>
        private string appName = String.Empty;

        /// <summary>
        /// 获取或设置自动启动的应用名称
        /// </summary>
        public string AppName {
            get { return appName; }
            set { appName = value; }
        }

        /// <summary>
        /// 获取是否自动启动执行的应用
        /// </summary>
        public bool AutoStart {
            get { return autoStart; }
            set { autoStart = value; }
        }

        /// <summary>
        /// 获取或设置网上配置地址
        /// </summary>
        public string XmlPath {
            get { return xmPath; }
            set { xmPath = value; }
        }

        /// <summary>
        /// 获取或设置程序集合
        /// </summary>
        public Dictionary<string, LocalAssemblyItemInfo> AssemblyItems {
            get { return assemblyItems; }
            set { assemblyItems = value; }
        }
    }
}
